package hudson.zipscript.parser.template.element.directive.foreachdir;

import hudson.zipscript.parser.exception.ParseException;
import hudson.zipscript.parser.template.data.ParsingSession;
import hudson.zipscript.parser.template.element.Element;
import hudson.zipscript.parser.template.element.directive.AbstractDirectivePatternMatcher;


public class ForeachPatternMatcher extends AbstractDirectivePatternMatcher {

	protected Element createElement(
			char[] startToken, String s, int contentPosition, ParsingSession parseData) throws ParseException {
		return new ForeachDirective(s, parseData, contentPosition);
	}

	protected String getDirectiveName() {
		return "foreach";
	}
}